home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / inetutil.1 / inetutil / inetutils-1.1 / configure < prev    next >
Encoding:
Text File  |  1996-08-01  |  75.7 KB  |  2,696 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-encryption     enable encryption"
  16. ac_help="$ac_help
  17.   --enable-authentication enable connection authentication"
  18. ac_help="$ac_help
  19.   --disable-servers       don't compile servers"
  20. ac_help="$ac_help
  21.   --disable-clients       don't compile clients"
  22. ac_help="$ac_help
  23.   --disable-talk          don't compile talk or talkd"
  24.  
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46. bindir='${exec_prefix}/bin'
  47. sbindir='${exec_prefix}/sbin'
  48. libexecdir='${exec_prefix}/libexec'
  49. datadir='${prefix}/share'
  50. sysconfdir='${prefix}/etc'
  51. sharedstatedir='${prefix}/com'
  52. localstatedir='${prefix}/var'
  53. libdir='${exec_prefix}/lib'
  54. includedir='${prefix}/include'
  55. oldincludedir='/usr/include'
  56. infodir='${prefix}/info'
  57. mandir='${prefix}/man'
  58.  
  59. # Initialize some other variables.
  60. subdirs=
  61. MFLAGS= MAKEFLAGS=
  62.  
  63. ac_prev=
  64. for ac_option
  65. do
  66.  
  67.   # If the previous option needs an argument, assign it.
  68.   if test -n "$ac_prev"; then
  69.     eval "$ac_prev=\$ac_option"
  70.     ac_prev=
  71.     continue
  72.   fi
  73.  
  74.   case "$ac_option" in
  75.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  76.   *) ac_optarg= ;;
  77.   esac
  78.  
  79.   # Accept the important Cygnus configure options, so we can diagnose typos.
  80.  
  81.   case "$ac_option" in
  82.  
  83.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  84.     ac_prev=bindir ;;
  85.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  86.     bindir="$ac_optarg" ;;
  87.  
  88.   -build | --build | --buil | --bui | --bu)
  89.     ac_prev=build ;;
  90.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  91.     build="$ac_optarg" ;;
  92.  
  93.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  94.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  95.     ac_prev=cache_file ;;
  96.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  97.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  98.     cache_file="$ac_optarg" ;;
  99.  
  100.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  101.     ac_prev=datadir ;;
  102.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  103.   | --da=*)
  104.     datadir="$ac_optarg" ;;
  105.  
  106.   -disable-* | --disable-*)
  107.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  108.     # Reject names that are not valid shell variable names.
  109.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  110.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  111.     fi
  112.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  113.     eval "enable_${ac_feature}=no" ;;
  114.  
  115.   -enable-* | --enable-*)
  116.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  117.     # Reject names that are not valid shell variable names.
  118.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  119.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  120.     fi
  121.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  122.     case "$ac_option" in
  123.       *=*) ;;
  124.       *) ac_optarg=yes ;;
  125.     esac
  126.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  127.  
  128.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  129.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  130.   | --exec | --exe | --ex)
  131.     ac_prev=exec_prefix ;;
  132.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  133.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  134.   | --exec=* | --exe=* | --ex=*)
  135.     exec_prefix="$ac_optarg" ;;
  136.  
  137.   -gas | --gas | --ga | --g)
  138.     # Obsolete; use --with-gas.
  139.     with_gas=yes ;;
  140.  
  141.   -help | --help | --hel | --he)
  142.     # Omit some internal or obsolete options to make the list less imposing.
  143.     # This message is too long to be a string in the A/UX 3.1 sh.
  144.     cat << EOF
  145. Usage: configure [options] [host]
  146. Options: [defaults in brackets after descriptions]
  147. Configuration:
  148.   --cache-file=FILE       cache test results in FILE
  149.   --help                  print this message
  150.   --no-create             do not create output files
  151.   --quiet, --silent       do not print \`checking...' messages
  152.   --version               print the version of autoconf that created configure
  153. Directory and file names:
  154.   --prefix=PREFIX         install architecture-independent files in PREFIX
  155.                           [$ac_default_prefix]
  156.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  157.                           [same as prefix]
  158.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  159.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  160.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  161.   --datadir=DIR           read-only architecture-independent data in DIR
  162.                           [PREFIX/share]
  163.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  164.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  165.                           [PREFIX/com]
  166.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  167.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  168.   --includedir=DIR        C header files in DIR [PREFIX/include]
  169.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  170.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  171.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  172.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  173.   --program-prefix=PREFIX prepend PREFIX to installed program names
  174.   --program-suffix=SUFFIX append SUFFIX to installed program names
  175.   --program-transform-name=PROGRAM
  176.                           run sed PROGRAM on installed program names
  177. EOF
  178.     cat << EOF
  179. Host type:
  180.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  181.   --host=HOST             configure for HOST [guessed]
  182.   --target=TARGET         configure for TARGET [TARGET=HOST]
  183. Features and packages:
  184.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  185.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  186.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  187.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  188.   --x-includes=DIR        X include files are in DIR
  189.   --x-libraries=DIR       X library files are in DIR
  190. EOF
  191.     if test -n "$ac_help"; then
  192.       echo "--enable and --with options recognized:$ac_help"
  193.     fi
  194.     exit 0 ;;
  195.  
  196.   -host | --host | --hos | --ho)
  197.     ac_prev=host ;;
  198.   -host=* | --host=* | --hos=* | --ho=*)
  199.     host="$ac_optarg" ;;
  200.  
  201.   -includedir | --includedir | --includedi | --included | --include \
  202.   | --includ | --inclu | --incl | --inc)
  203.     ac_prev=includedir ;;
  204.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  205.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  206.     includedir="$ac_optarg" ;;
  207.  
  208.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  209.     ac_prev=infodir ;;
  210.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  211.     infodir="$ac_optarg" ;;
  212.  
  213.   -libdir | --libdir | --libdi | --libd)
  214.     ac_prev=libdir ;;
  215.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  216.     libdir="$ac_optarg" ;;
  217.  
  218.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  219.   | --libexe | --libex | --libe)
  220.     ac_prev=libexecdir ;;
  221.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  222.   | --libexe=* | --libex=* | --libe=*)
  223.     libexecdir="$ac_optarg" ;;
  224.  
  225.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  226.   | --localstate | --localstat | --localsta | --localst \
  227.   | --locals | --local | --loca | --loc | --lo)
  228.     ac_prev=localstatedir ;;
  229.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  230.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  231.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  232.     localstatedir="$ac_optarg" ;;
  233.  
  234.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  235.     ac_prev=mandir ;;
  236.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  237.     mandir="$ac_optarg" ;;
  238.  
  239.   -nfp | --nfp | --nf)
  240.     # Obsolete; use --without-fp.
  241.     with_fp=no ;;
  242.  
  243.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  244.   | --no-cr | --no-c)
  245.     no_create=yes ;;
  246.  
  247.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  248.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  249.     no_recursion=yes ;;
  250.  
  251.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  252.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  253.   | --oldin | --oldi | --old | --ol | --o)
  254.     ac_prev=oldincludedir ;;
  255.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  256.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  257.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  258.     oldincludedir="$ac_optarg" ;;
  259.  
  260.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  261.     ac_prev=prefix ;;
  262.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  263.     prefix="$ac_optarg" ;;
  264.  
  265.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  266.   | --program-pre | --program-pr | --program-p)
  267.     ac_prev=program_prefix ;;
  268.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  269.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  270.     program_prefix="$ac_optarg" ;;
  271.  
  272.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  273.   | --program-suf | --program-su | --program-s)
  274.     ac_prev=program_suffix ;;
  275.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  276.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  277.     program_suffix="$ac_optarg" ;;
  278.  
  279.   -program-transform-name | --program-transform-name \
  280.   | --program-transform-nam | --program-transform-na \
  281.   | --program-transform-n | --program-transform- \
  282.   | --program-transform | --program-transfor \
  283.   | --program-transfo | --program-transf \
  284.   | --program-trans | --program-tran \
  285.   | --progr-tra | --program-tr | --program-t)
  286.     ac_prev=program_transform_name ;;
  287.   -program-transform-name=* | --program-transform-name=* \
  288.   | --program-transform-nam=* | --program-transform-na=* \
  289.   | --program-transform-n=* | --program-transform-=* \
  290.   | --program-transform=* | --program-transfor=* \
  291.   | --program-transfo=* | --program-transf=* \
  292.   | --program-trans=* | --program-tran=* \
  293.   | --progr-tra=* | --program-tr=* | --program-t=*)
  294.     program_transform_name="$ac_optarg" ;;
  295.  
  296.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  297.   | -silent | --silent | --silen | --sile | --sil)
  298.     silent=yes ;;
  299.  
  300.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  301.     ac_prev=sbindir ;;
  302.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  303.   | --sbi=* | --sb=*)
  304.     sbindir="$ac_optarg" ;;
  305.  
  306.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  307.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  308.   | --sharedst | --shareds | --shared | --share | --shar \
  309.   | --sha | --sh)
  310.     ac_prev=sharedstatedir ;;
  311.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  312.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  313.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  314.   | --sha=* | --sh=*)
  315.     sharedstatedir="$ac_optarg" ;;
  316.  
  317.   -site | --site | --sit)
  318.     ac_prev=site ;;
  319.   -site=* | --site=* | --sit=*)
  320.     site="$ac_optarg" ;;
  321.  
  322.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  323.     ac_prev=srcdir ;;
  324.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  325.     srcdir="$ac_optarg" ;;
  326.  
  327.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  328.   | --syscon | --sysco | --sysc | --sys | --sy)
  329.     ac_prev=sysconfdir ;;
  330.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  331.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  332.     sysconfdir="$ac_optarg" ;;
  333.  
  334.   -target | --target | --targe | --targ | --tar | --ta | --t)
  335.     ac_prev=target ;;
  336.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  337.     target="$ac_optarg" ;;
  338.  
  339.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  340.     verbose=yes ;;
  341.  
  342.   -version | --version | --versio | --versi | --vers)
  343.     echo "configure generated by autoconf version 2.10"
  344.     exit 0 ;;
  345.  
  346.   -with-* | --with-*)
  347.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  348.     # Reject names that are not valid shell variable names.
  349.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  350.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  351.     fi
  352.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  353.     case "$ac_option" in
  354.       *=*) ;;
  355.       *) ac_optarg=yes ;;
  356.     esac
  357.     eval "with_${ac_package}='$ac_optarg'" ;;
  358.  
  359.   -without-* | --without-*)
  360.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  361.     # Reject names that are not valid shell variable names.
  362.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  363.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  364.     fi
  365.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  366.     eval "with_${ac_package}=no" ;;
  367.  
  368.   --x)
  369.     # Obsolete; use --with-x.
  370.     with_x=yes ;;
  371.  
  372.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  373.   | --x-incl | --x-inc | --x-in | --x-i)
  374.     ac_prev=x_includes ;;
  375.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  376.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  377.     x_includes="$ac_optarg" ;;
  378.  
  379.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  380.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  381.     ac_prev=x_libraries ;;
  382.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  383.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  384.     x_libraries="$ac_optarg" ;;
  385.  
  386.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  387.     ;;
  388.  
  389.   *)
  390.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  391.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  392.     fi
  393.     if test "x$nonopt" != xNONE; then
  394.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  395.     fi
  396.     nonopt="$ac_option"
  397.     ;;
  398.  
  399.   esac
  400. done
  401.  
  402. if test -n "$ac_prev"; then
  403.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  404. fi
  405.  
  406. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  407.  
  408. # File descriptor usage:
  409. # 0 standard input
  410. # 1 file creation
  411. # 2 errors and warnings
  412. # 3 some systems may open it to /dev/tty
  413. # 4 used on the Kubota Titan
  414. # 6 checking for... messages and results
  415. # 5 compiler messages saved in config.log
  416. if test "$silent" = yes; then
  417.   exec 6>/dev/null
  418. else
  419.   exec 6>&1
  420. fi
  421. exec 5>./config.log
  422.  
  423. echo "\
  424. This file contains any messages produced by compilers while
  425. running configure, to aid debugging if configure makes a mistake.
  426. " 1>&5
  427.  
  428. # Strip out --no-create and --no-recursion so they do not pile up.
  429. # Also quote any args containing shell metacharacters.
  430. ac_configure_args=
  431. for ac_arg
  432. do
  433.   case "$ac_arg" in
  434.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  435.   | --no-cr | --no-c) ;;
  436.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  437.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  438.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  439.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  440.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  441.   esac
  442. done
  443.  
  444. # NLS nuisances.
  445. # Only set LANG and LC_ALL to C if already set.
  446. # These must not be set unconditionally because not all systems understand
  447. # e.g. LANG=C (notably SCO).
  448. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  449. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  450.  
  451. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  452. rm -rf conftest* confdefs.h
  453. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  454. echo > confdefs.h
  455.  
  456. # A filename unique to this package, relative to the directory that
  457. # configure is in, which we can look for to find out if srcdir is correct.
  458. ac_unique_file=inetd/inetd.c
  459.  
  460. # Find the source files, if location was not specified.
  461. if test -z "$srcdir"; then
  462.   ac_srcdir_defaulted=yes
  463.   # Try the directory containing this script, then its parent.
  464.   ac_prog=$0
  465.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  466.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  467.   srcdir=$ac_confdir
  468.   if test ! -r $srcdir/$ac_unique_file; then
  469.     srcdir=..
  470.   fi
  471. else
  472.   ac_srcdir_defaulted=no
  473. fi
  474. if test ! -r $srcdir/$ac_unique_file; then
  475.   if test "$ac_srcdir_defaulted" = yes; then
  476.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  477.   else
  478.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  479.   fi
  480. fi
  481. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  482.  
  483. # Prefer explicitly selected file to automatically selected ones.
  484. if test -z "$CONFIG_SITE"; then
  485.   if test "x$prefix" != xNONE; then
  486.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  487.   else
  488.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  489.   fi
  490. fi
  491. for ac_site_file in $CONFIG_SITE; do
  492.   if test -r "$ac_site_file"; then
  493.     echo "loading site script $ac_site_file"
  494.     . "$ac_site_file"
  495.   fi
  496. done
  497.  
  498. if test -r "$cache_file"; then
  499.   echo "loading cache $cache_file"
  500.   . $cache_file
  501. else
  502.   echo "creating cache $cache_file"
  503.   > $cache_file
  504. fi
  505.  
  506. ac_ext=c
  507. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  508. ac_cpp='$CPP $CPPFLAGS'
  509. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  510. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  511.  
  512. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  513.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  514.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  515.     ac_n= ac_c='
  516. ' ac_t='    '
  517.   else
  518.     ac_n=-n ac_c= ac_t=
  519.   fi
  520. else
  521.   ac_n= ac_c='\c' ac_t=
  522. fi
  523.  
  524.  
  525.  
  526.  
  527.  
  528. # These lists don't contain talk or talkd, which will get added later if nec.
  529. COMMON='libtelnet libinetutils'
  530. SERVERS='inetd ftpd telnetd rshd rlogind uucpd rexecd syslogd tftpd'
  531. CLIENTS='telnet ftp rsh rcp rlogin tftp syslog'
  532.  
  533.  
  534.  
  535.  
  536. # All subdirectories, whether built or not
  537. SUBDIRS="headers $SERVERS $CLIENTS $COMMON"
  538.  
  539.  
  540. # Optional things we put into libinetutils (we use the name `LIBOBJS' because
  541. # that's what AC_REPLACE_FUNCS uses).
  542. LIBOBJS=''
  543.  
  544.  
  545. # Include files that we link into our own include directory from headers.
  546. # Initialize it with the things we always want to use.
  547. INCLUDES="version.h crypt.h arpa/telnet.h arpa/ftp.h arpa/tftp.h"
  548.  
  549. # Check whether --enable-encryption or --disable-encryption was given.
  550. if test "${enable_encryption+set}" = set; then
  551.   enableval="$enable_encryption"
  552.   :
  553. else
  554.   enable_encryption=no
  555. fi
  556.  
  557. # Check whether --enable-authentication or --disable-authentication was given.
  558. if test "${enable_authentication+set}" = set; then
  559.   enableval="$enable_authentication"
  560.   :
  561. else
  562.   enable_authentication=no
  563. fi
  564.  
  565. # By default we compile both servers and clients, but see what the user wants
  566. # Check whether --enable-servers or --disable-servers was given.
  567. if test "${enable_servers+set}" = set; then
  568.   enableval="$enable_servers"
  569.   :
  570. else
  571.   enable_servers=yes
  572. fi
  573.  
  574. # Check whether --enable-clients or --disable-clients was given.
  575. if test "${enable_clients+set}" = set; then
  576.   enableval="$enable_clients"
  577.   :
  578. else
  579.   enable_clients=yes
  580. fi
  581.  
  582.  
  583. # Check whether --enable-talk or --disable-talk was given.
  584. if test "${enable_talk+set}" = set; then
  585.   enableval="$enable_talk"
  586.   :
  587. else
  588.   enable_talk=maybe
  589. fi
  590.  
  591.  
  592. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  593. set dummy ${MAKE-make}; ac_make=$2
  594. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  595.   echo $ac_n "(cached) $ac_c" 1>&6
  596. else
  597.   cat > conftestmake <<\EOF
  598. all:
  599.     @echo 'ac_maketemp="${MAKE}"'
  600. EOF
  601. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  602. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  603. if test -n "$ac_maketemp"; then
  604.   eval ac_cv_prog_make_${ac_make}_set=yes
  605. else
  606.   eval ac_cv_prog_make_${ac_make}_set=no
  607. fi
  608. rm -f conftestmake
  609. fi
  610. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  611.   echo "$ac_t""yes" 1>&6
  612.   SET_MAKE=
  613. else
  614.   echo "$ac_t""no" 1>&6
  615.   SET_MAKE="MAKE=${MAKE-make}"
  616. fi
  617.  
  618.  
  619. # Extract the first word of "gcc", so it can be a program name with args.
  620. set dummy gcc; ac_word=$2
  621. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  622. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  623.   echo $ac_n "(cached) $ac_c" 1>&6
  624. else
  625.   if test -n "$CC"; then
  626.   ac_cv_prog_CC="$CC" # Let the user override the test.
  627. else
  628.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  629.   for ac_dir in $PATH; do
  630.     test -z "$ac_dir" && ac_dir=.
  631.     if test -f $ac_dir/$ac_word; then
  632.       ac_cv_prog_CC="gcc"
  633.       break
  634.     fi
  635.   done
  636.   IFS="$ac_save_ifs"
  637. fi
  638. fi
  639. CC="$ac_cv_prog_CC"
  640. if test -n "$CC"; then
  641.   echo "$ac_t""$CC" 1>&6
  642. else
  643.   echo "$ac_t""no" 1>&6
  644. fi
  645.  
  646. if test -z "$CC"; then
  647.   # Extract the first word of "cc", so it can be a program name with args.
  648. set dummy cc; ac_word=$2
  649. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  650. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  651.   echo $ac_n "(cached) $ac_c" 1>&6
  652. else
  653.   if test -n "$CC"; then
  654.   ac_cv_prog_CC="$CC" # Let the user override the test.
  655. else
  656.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  657.   ac_prog_rejected=no
  658.   for ac_dir in $PATH; do
  659.     test -z "$ac_dir" && ac_dir=.
  660.     if test -f $ac_dir/$ac_word; then
  661.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  662.         ac_prog_rejected=yes
  663.     continue
  664.       fi
  665.       ac_cv_prog_CC="cc"
  666.       break
  667.     fi
  668.   done
  669.   IFS="$ac_save_ifs"
  670. if test $ac_prog_rejected = yes; then
  671.   # We found a bogon in the path, so make sure we never use it.
  672.   set dummy $ac_cv_prog_CC
  673.   shift
  674.   if test $# -gt 0; then
  675.     # We chose a different compiler from the bogus one.
  676.     # However, it has the same basename, so the bogon will be chosen
  677.     # first if we set CC to just the basename; use the full file name.
  678.     shift
  679.     set dummy "$ac_dir/$ac_word" "$@"
  680.     shift
  681.     ac_cv_prog_CC="$@"
  682.   fi
  683. fi
  684. fi
  685. fi
  686. CC="$ac_cv_prog_CC"
  687. if test -n "$CC"; then
  688.   echo "$ac_t""$CC" 1>&6
  689. else
  690.   echo "$ac_t""no" 1>&6
  691. fi
  692.  
  693.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  694. fi
  695.  
  696. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  697. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  698.   echo $ac_n "(cached) $ac_c" 1>&6
  699. else
  700.   cat > conftest.c <<EOF
  701. #ifdef __GNUC__
  702.   yes;
  703. #endif
  704. EOF
  705. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  706.   ac_cv_prog_gcc=yes
  707. else
  708.   ac_cv_prog_gcc=no
  709. fi
  710. fi
  711.  
  712. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  713. if test $ac_cv_prog_gcc = yes; then
  714.   GCC=yes
  715.   if test "${CFLAGS+set}" != set; then
  716.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  717. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  718.   echo $ac_n "(cached) $ac_c" 1>&6
  719. else
  720.   echo 'void f(){}' > conftest.c
  721. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  722.   ac_cv_prog_gcc_g=yes
  723. else
  724.   ac_cv_prog_gcc_g=no
  725. fi
  726. rm -f conftest*
  727.  
  728. fi
  729.  
  730. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  731.     if test $ac_cv_prog_gcc_g = yes; then
  732.       CFLAGS="-g -O"
  733.     else
  734.       CFLAGS="-O"
  735.     fi
  736.   fi
  737. else
  738.   GCC=
  739.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  740. fi
  741.  
  742. ac_aux_dir=
  743. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  744.   if test -f $ac_dir/install-sh; then
  745.     ac_aux_dir=$ac_dir
  746.     ac_install_sh="$ac_aux_dir/install-sh -c"
  747.     break
  748.   elif test -f $ac_dir/install.sh; then
  749.     ac_aux_dir=$ac_dir
  750.     ac_install_sh="$ac_aux_dir/install.sh -c"
  751.     break
  752.   fi
  753. done
  754. if test -z "$ac_aux_dir"; then
  755.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  756. fi
  757. ac_config_guess=$ac_aux_dir/config.guess
  758. ac_config_sub=$ac_aux_dir/config.sub
  759. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  760.  
  761. # Find a good install program.  We prefer a C program (faster),
  762. # so one script is as good as another.  But avoid the broken or
  763. # incompatible versions:
  764. # SysV /etc/install, /usr/sbin/install
  765. # SunOS /usr/etc/install
  766. # IRIX /sbin/install
  767. # AIX /bin/install
  768. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  769. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  770. # ./install, which can be erroneously created by make from ./install.sh.
  771. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  772. if test -z "$INSTALL"; then
  773. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  774.   echo $ac_n "(cached) $ac_c" 1>&6
  775. else
  776.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  777.   for ac_dir in $PATH; do
  778.     # Account for people who put trailing slashes in PATH elements.
  779.     case "$ac_dir/" in
  780.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  781.     *)
  782.       # OSF1 and SCO ODT 3.0 have their own names for install.
  783.       for ac_prog in ginstall installbsd scoinst install; do
  784.         if test -f $ac_dir/$ac_prog; then
  785.       if test $ac_prog = install &&
  786.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  787.         # AIX install.  It has an incompatible calling convention.
  788.         # OSF/1 installbsd also uses dspmsg, but is usable.
  789.         :
  790.       else
  791.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  792.         break 2
  793.       fi
  794.     fi
  795.       done
  796.       ;;
  797.     esac
  798.   done
  799.   IFS="$ac_save_ifs"
  800.  
  801. fi
  802.   if test "${ac_cv_path_install+set}" = set; then
  803.     INSTALL="$ac_cv_path_install"
  804.   else
  805.     # As a last resort, use the slow shell script.  We don't cache a
  806.     # path for INSTALL within a source directory, because that will
  807.     # break other packages using the cache if that directory is
  808.     # removed, or if the path is relative.
  809.     INSTALL="$ac_install_sh"
  810.   fi
  811. fi
  812. echo "$ac_t""$INSTALL" 1>&6
  813.  
  814. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  815. # It thinks the first close brace ends the variable substitution.
  816. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  817.  
  818. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  819.  
  820. for ac_prog in 'bison -y' byacc
  821. do
  822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  823. set dummy $ac_prog; ac_word=$2
  824. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  825. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  826.   echo $ac_n "(cached) $ac_c" 1>&6
  827. else
  828.   if test -n "$YACC"; then
  829.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  830. else
  831.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  832.   for ac_dir in $PATH; do
  833.     test -z "$ac_dir" && ac_dir=.
  834.     if test -f $ac_dir/$ac_word; then
  835.       ac_cv_prog_YACC="$ac_prog"
  836.       break
  837.     fi
  838.   done
  839.   IFS="$ac_save_ifs"
  840. fi
  841. fi
  842. YACC="$ac_cv_prog_YACC"
  843. if test -n "$YACC"; then
  844.   echo "$ac_t""$YACC" 1>&6
  845. else
  846.   echo "$ac_t""no" 1>&6
  847. fi
  848.  
  849. test -n "$YACC" && break
  850. done
  851. test -n "$YACC" || YACC="yacc"
  852.  
  853.  
  854. # Make sure we can run config.sub.
  855. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  856. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  857. fi
  858.  
  859. echo $ac_n "checking host system type""... $ac_c" 1>&6
  860.  
  861. host_alias=$host
  862. case "$host_alias" in
  863. NONE)
  864.   case $nonopt in
  865.   NONE)
  866.     if host_alias=`$ac_config_guess`; then :
  867.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  868.     fi ;;
  869.   *) host_alias=$nonopt ;;
  870.   esac ;;
  871. esac
  872.  
  873. host=`$ac_config_sub $host_alias`
  874. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  875. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  876. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  877. echo "$ac_t""$host" 1>&6
  878.  
  879. echo $ac_n "checking build system type""... $ac_c" 1>&6
  880.  
  881. build_alias=$build
  882. case "$build_alias" in
  883. NONE)
  884.   case $nonopt in
  885.   NONE) build_alias=$host_alias ;;
  886.   *) build_alias=$nonopt ;;
  887.   esac ;;
  888. esac
  889.  
  890. build=`$ac_config_sub $build_alias`
  891. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  892. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  893. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  894. echo "$ac_t""$build" 1>&6
  895.  
  896. if test $host != $build; then
  897.   ac_tool_prefix=${host_alias}-
  898. else
  899.   ac_tool_prefix=
  900. fi
  901.  
  902. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  903. set dummy ${ac_tool_prefix}ar; ac_word=$2
  904. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  905. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  906.   echo $ac_n "(cached) $ac_c" 1>&6
  907. else
  908.   if test -n "$AR"; then
  909.   ac_cv_prog_AR="$AR" # Let the user override the test.
  910. else
  911.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  912.   for ac_dir in $PATH; do
  913.     test -z "$ac_dir" && ac_dir=.
  914.     if test -f $ac_dir/$ac_word; then
  915.       ac_cv_prog_AR="${ac_tool_prefix}ar"
  916.       break
  917.     fi
  918.   done
  919.   IFS="$ac_save_ifs"
  920.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  921. fi
  922. fi
  923. AR="$ac_cv_prog_AR"
  924. if test -n "$AR"; then
  925.   echo "$ac_t""$AR" 1>&6
  926. else
  927.   echo "$ac_t""no" 1>&6
  928. fi
  929.  
  930.  
  931.  
  932. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  933. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  934. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  935. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  936.   echo $ac_n "(cached) $ac_c" 1>&6
  937. else
  938.   if test -n "$RANLIB"; then
  939.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  940. else
  941.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  942.   for ac_dir in $PATH; do
  943.     test -z "$ac_dir" && ac_dir=.
  944.     if test -f $ac_dir/$ac_word; then
  945.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  946.       break
  947.     fi
  948.   done
  949.   IFS="$ac_save_ifs"
  950. fi
  951. fi
  952. RANLIB="$ac_cv_prog_RANLIB"
  953. if test -n "$RANLIB"; then
  954.   echo "$ac_t""$RANLIB" 1>&6
  955. else
  956.   echo "$ac_t""no" 1>&6
  957. fi
  958.  
  959.  
  960. if test -z "$ac_cv_prog_RANLIB"; then
  961. if test -n "$ac_tool_prefix"; then
  962.   # Extract the first word of "ranlib", so it can be a program name with args.
  963. set dummy ranlib; ac_word=$2
  964. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  965. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  966.   echo $ac_n "(cached) $ac_c" 1>&6
  967. else
  968.   if test -n "$RANLIB"; then
  969.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  970. else
  971.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  972.   for ac_dir in $PATH; do
  973.     test -z "$ac_dir" && ac_dir=.
  974.     if test -f $ac_dir/$ac_word; then
  975.       ac_cv_prog_RANLIB="ranlib"
  976.       break
  977.     fi
  978.   done
  979.   IFS="$ac_save_ifs"
  980.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  981. fi
  982. fi
  983. RANLIB="$ac_cv_prog_RANLIB"
  984. if test -n "$RANLIB"; then
  985.   echo "$ac_t""$RANLIB" 1>&6
  986. else
  987.   echo "$ac_t""no" 1>&6
  988. fi
  989.  
  990. else
  991.   RANLIB=":"
  992. fi
  993. fi
  994.  
  995. # Extract the first word of "rm", so it can be a program name with args.
  996. set dummy rm; ac_word=$2
  997. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  998. if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  999.   echo $ac_n "(cached) $ac_c" 1>&6
  1000. else
  1001.   case "$RM" in
  1002.   /*)
  1003.   ac_cv_path_RM="$RM" # Let the user override the test with a path.
  1004.   ;;
  1005.   *)
  1006.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1007.   for ac_dir in $PATH; do
  1008.     test -z "$ac_dir" && ac_dir=.
  1009.     if test -f $ac_dir/$ac_word; then
  1010.       ac_cv_path_RM="$ac_dir/$ac_word"
  1011.       break
  1012.     fi
  1013.   done
  1014.   IFS="$ac_save_ifs"
  1015.   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  1016.   ;;
  1017. esac
  1018. fi
  1019. RM="$ac_cv_path_RM"
  1020. if test -n "$RM"; then
  1021.   echo "$ac_t""$RM" 1>&6
  1022. else
  1023.   echo "$ac_t""no" 1>&6
  1024. fi
  1025.  
  1026.  
  1027. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1028. # On Suns, sometimes $CPP names a directory.
  1029. if test -n "$CPP" && test -d "$CPP"; then
  1030.   CPP=
  1031. fi
  1032. if test -z "$CPP"; then
  1033. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1034.   echo $ac_n "(cached) $ac_c" 1>&6
  1035. else
  1036.     # This must be in double quotes, not single quotes, because CPP may get
  1037.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1038.   CPP="${CC-cc} -E"
  1039.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1040.   # not just through cpp.
  1041.   cat > conftest.$ac_ext <<EOF
  1042. #line 1043 "configure"
  1043. #include "confdefs.h"
  1044. #include <assert.h>
  1045. Syntax Error
  1046. EOF
  1047. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1048. { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1049. ac_err=`grep -v '^ *+' conftest.out`
  1050. if test -z "$ac_err"; then
  1051.   :
  1052. else
  1053.   echo "$ac_err" >&5
  1054.   rm -rf conftest*
  1055.   CPP="${CC-cc} -E -traditional-cpp"
  1056.   cat > conftest.$ac_ext <<EOF
  1057. #line 1058 "configure"
  1058. #include "confdefs.h"
  1059. #include <assert.h>
  1060. Syntax Error
  1061. EOF
  1062. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1063. { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1064. ac_err=`grep -v '^ *+' conftest.out`
  1065. if test -z "$ac_err"; then
  1066.   :
  1067. else
  1068.   echo "$ac_err" >&5
  1069.   rm -rf conftest*
  1070.   CPP=/lib/cpp
  1071. fi
  1072. rm -f conftest*
  1073. fi
  1074. rm -f conftest*
  1075.   ac_cv_prog_CPP="$CPP"
  1076. fi
  1077.   CPP="$ac_cv_prog_CPP"
  1078. else
  1079.   ac_cv_prog_CPP="$CPP"
  1080. fi
  1081. echo "$ac_t""$CPP" 1>&6
  1082.  
  1083. for ac_hdr in malloc.h errno.h string.h stdarg.h termio.h termios.h \
  1084.          stdlib.h sys/tty.h sys/utsname.h \
  1085.          sys/msgbuf.h krb.h des.h netinet/in_systm.h \
  1086.          netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h vis.h \
  1087.          sys/ioctl_compat.h sys/cdefs.h
  1088. do
  1089. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1090. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1091. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1092.   echo $ac_n "(cached) $ac_c" 1>&6
  1093. else
  1094.   cat > conftest.$ac_ext <<EOF
  1095. #line 1096 "configure"
  1096. #include "confdefs.h"
  1097. #include <$ac_hdr>
  1098. EOF
  1099. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1100. { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1101. ac_err=`grep -v '^ *+' conftest.out`
  1102. if test -z "$ac_err"; then
  1103.   rm -rf conftest*
  1104.   eval "ac_cv_header_$ac_safe=yes"
  1105. else
  1106.   echo "$ac_err" >&5
  1107.   rm -rf conftest*
  1108.   eval "ac_cv_header_$ac_safe=no"
  1109. fi
  1110. rm -f conftest*
  1111. fi
  1112. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1113.   echo "$ac_t""yes" 1>&6
  1114.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1115.   cat >> confdefs.h <<EOF
  1116. #define $ac_tr_hdr 1
  1117. EOF
  1118.  
  1119. else
  1120.   echo "$ac_t""no" 1>&6
  1121. fi
  1122. done
  1123.  
  1124.  
  1125. # Headers that we use our own version of if the system doesn't have them.
  1126. ac_safe=`echo "paths.h" | tr './\055' '___'`
  1127. echo $ac_n "checking for paths.h""... $ac_c" 1>&6
  1128. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1129.   echo $ac_n "(cached) $ac_c" 1>&6
  1130. else
  1131.   cat > conftest.$ac_ext <<EOF
  1132. #line 1133 "configure"
  1133. #include "confdefs.h"
  1134. #include <paths.h>
  1135. EOF
  1136. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1137. { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1138. ac_err=`grep -v '^ *+' conftest.out`
  1139. if test -z "$ac_err"; then
  1140.   rm -rf conftest*
  1141.   eval "ac_cv_header_$ac_safe=yes"
  1142. else
  1143.   echo "$ac_err" >&5
  1144.   rm -rf conftest*
  1145.   eval "ac_cv_header_$ac_safe=no"
  1146. fi
  1147. rm -f conftest*
  1148. fi
  1149. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1150.   echo "$ac_t""yes" 1>&6
  1151.   :
  1152. else
  1153.   echo "$ac_t""no" 1>&6
  1154. INCLUDES="$INCLUDES paths.h"
  1155. fi
  1156.  
  1157.  
  1158. echo $ac_n "checking for -lutil""... $ac_c" 1>&6
  1159. ac_lib_var=`echo util'_'logout | tr './+\055' '__p_'`
  1160. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1161.   echo $ac_n "(cached) $ac_c" 1>&6
  1162. else
  1163.   ac_save_LIBS="$LIBS"
  1164. LIBS="-lutil  $LIBS"
  1165. cat > conftest.$ac_ext <<EOF
  1166. #line 1167 "configure"
  1167. #include "confdefs.h"
  1168. /* Override any gcc2 internal prototype to avoid an error.  */
  1169. /* We use char because int might match the return type of a gcc2
  1170.     builtin and then its argument prototype would still apply.  */
  1171. char logout();
  1172.  
  1173. int main() { return 0; }
  1174. int t() {
  1175. logout()
  1176. ; return 0; }
  1177. EOF
  1178. if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1179.   rm -rf conftest*
  1180.   eval "ac_cv_lib_$ac_lib_var=yes"
  1181. else
  1182.   rm -rf conftest*
  1183.   eval "ac_cv_lib_$ac_lib_var=no"
  1184. fi
  1185. rm -f conftest*
  1186. LIBS="$ac_save_LIBS"
  1187.  
  1188. fi
  1189. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1190.   echo "$ac_t""yes" 1>&6
  1191.   LIBUTIL=-lutil
  1192. else
  1193.   echo "$ac_t""no" 1>&6
  1194. fi
  1195.  
  1196.  
  1197. echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  1198. ac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
  1199. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1200.   echo $ac_n "(cached) $ac_c" 1>&6
  1201. else
  1202.   ac_save_LIBS="$LIBS"
  1203. LIBS="-lcrypt  $LIBS"
  1204. cat > conftest.$ac_ext <<EOF
  1205. #line 1206 "configure"
  1206. #include "confdefs.h"
  1207. /* Override any gcc2 internal prototype to avoid an error.  */
  1208. /* We use char because int might match the return type of a gcc2
  1209.     builtin and then its argument prototype would still apply.  */
  1210. char crypt();
  1211.  
  1212. int main() { return 0; }
  1213. int t() {
  1214. crypt()
  1215. ; return 0; }
  1216. EOF
  1217. if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1218.   rm -rf conftest*
  1219.   eval "ac_cv_lib_$ac_lib_var=yes"
  1220. else
  1221.   rm -rf conftest*
  1222.   eval "ac_cv_lib_$ac_lib_var=no"
  1223. fi
  1224. rm -f conftest*
  1225. LIBS="$ac_save_LIBS"
  1226.  
  1227. fi
  1228. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1229.   echo "$ac_t""yes" 1>&6
  1230.   LIBCRYPT=-lcrypt
  1231. else
  1232.   echo "$ac_t""no" 1>&6
  1233. fi
  1234.  
  1235.  
  1236.  
  1237. if test "$enable_encryption" = yes -o "$enable_authentication" = yes; then
  1238.   echo $ac_n "checking for -lkrb""... $ac_c" 1>&6
  1239. ac_lib_var=`echo krb'_'krb_mk_req | tr './+\055' '__p_'`
  1240. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1241.   echo $ac_n "(cached) $ac_c" 1>&6
  1242. else
  1243.   ac_save_LIBS="$LIBS"
  1244. LIBS="-lkrb  $LIBS"
  1245. cat > conftest.$ac_ext <<EOF
  1246. #line 1247 "configure"
  1247. #include "confdefs.h"
  1248. /* Override any gcc2 internal prototype to avoid an error.  */
  1249. /* We use char because int might match the return type of a gcc2
  1250.     builtin and then its argument prototype would still apply.  */
  1251. char krb_mk_req();
  1252.  
  1253. int main() { return 0; }
  1254. int t() {
  1255. krb_mk_req()
  1256. ; return 0; }
  1257. EOF
  1258. if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1259.   rm -rf conftest*
  1260.   eval "ac_cv_lib_$ac_lib_var=yes"
  1261. else
  1262.   rm -rf conftest*
  1263.   eval "ac_cv_lib_$ac_lib_var=no"
  1264. fi
  1265. rm -f conftest*
  1266. LIBS="$ac_save_LIBS"
  1267.  
  1268. fi
  1269. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1270.   echo "$ac_t""yes" 1>&6
  1271.   LIBAUTH=-lkrb
  1272. else
  1273.   echo "$ac_t""no" 1>&6
  1274. fi
  1275.  
  1276.   echo $ac_n "checking for -ldes""... $ac_c" 1>&6
  1277. ac_lib_var=`echo des'_'des_key_sched | tr './+\055' '__p_'`
  1278. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1279.   echo $ac_n "(cached) $ac_c" 1>&6
  1280. else
  1281.   ac_save_LIBS="$LIBS"
  1282. LIBS="-ldes  $LIBS"
  1283. cat > conftest.$ac_ext <<EOF
  1284. #line 1285 "configure"
  1285. #include "confdefs.h"
  1286. /* Override any gcc2 internal prototype to avoid an error.  */
  1287. /* We use char because int might match the return type of a gcc2
  1288.     builtin and then its argument prototype would still apply.  */
  1289. char des_key_sched();
  1290.  
  1291. int main() { return 0; }
  1292. int t() {
  1293. des_key_sched()
  1294. ; return 0; }
  1295. EOF
  1296. if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1297.   rm -rf conftest*
  1298.   eval "ac_cv_lib_$ac_lib_var=yes"
  1299. else
  1300.   rm -rf conftest*
  1301.   eval "ac_cv_lib_$ac_lib_var=no"
  1302. fi
  1303. rm -f conftest*
  1304. LIBS="$ac_save_LIBS"
  1305.  
  1306. fi
  1307. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1308.   echo "$ac_t""yes" 1>&6
  1309.   LIBAUTH="$LIBAUTH -ldes"
  1310. else
  1311.   echo "$ac_t""no" 1>&6
  1312. fi
  1313.  
  1314.   
  1315. fi
  1316.  
  1317. _SAVE_LIBS="$LIBS"
  1318. LIBS="$LIBUTIL $LIBS"
  1319. for ac_func in cgetent uname strdup setutent_r logwtmp fpathconf tcgetattr crypt
  1320. do
  1321. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1322. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1323.   echo $ac_n "(cached) $ac_c" 1>&6
  1324. else
  1325.   cat > conftest.$ac_ext <<EOF
  1326. #line 1327 "configure"
  1327. #include "confdefs.h"
  1328. /* System header to define __stub macros and hopefully few prototypes,
  1329.     which can conflict with char $ac_func(); below.  */
  1330. #include <assert.h>
  1331. /* Override any gcc2 internal prototype to avoid an error.  */
  1332. /* We use char because int might match the return type of a gcc2
  1333.     builtin and then its argument prototype would still apply.  */
  1334. char $ac_func();
  1335.  
  1336. int main() { return 0; }
  1337. int t() {
  1338.  
  1339. /* The GNU C library defines this for functions which it implements
  1340.     to always fail with ENOSYS.  Some functions are actually named
  1341.     something starting with __ and the normal name is an alias.  */
  1342. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1343. choke me
  1344. #else
  1345. $ac_func();
  1346. #endif
  1347.  
  1348. ; return 0; }
  1349. EOF
  1350. if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1351.   rm -rf conftest*
  1352.   eval "ac_cv_func_$ac_func=yes"
  1353. else
  1354.   rm -rf conftest*
  1355.   eval "ac_cv_func_$ac_func=no"
  1356. fi
  1357. rm -f conftest*
  1358.  
  1359. fi
  1360. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1361.   echo "$ac_t""yes" 1>&6
  1362.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1363.   cat >> confdefs.h <<EOF
  1364. #define $ac_tr_func 1
  1365. EOF
  1366.  
  1367. else
  1368.   echo "$ac_t""no" 1>&6
  1369. fi
  1370. done
  1371.  
  1372. LIBS="$_SAVE_LIBS"
  1373.  
  1374. # If there's no libtermcap, add a bogus version of tgetent to libinetutils,
  1375. # as that's the only function actually used (except for dependencies from
  1376. # curses).
  1377. echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  1378. ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
  1379. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1380.   echo $ac_n "(cached) $ac_c" 1>&6
  1381. else
  1382.   ac_save_LIBS="$LIBS"
  1383. LIBS="-ltermcap  $LIBS"
  1384. cat > conftest.$ac_ext <<EOF
  1385. #line 1386 "configure"
  1386. #include "confdefs.h"
  1387. /* Override any gcc2 internal prototype to avoid an error.  */
  1388. /* We use char because int might match the return type of a gcc2
  1389.     builtin and then its argument prototype would still apply.  */
  1390. char tgetent();
  1391.  
  1392. int main() { return 0; }
  1393. int t() {
  1394. tgetent()
  1395. ; return 0; }
  1396. EOF
  1397. if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1398.   rm -rf conftest*
  1399.   eval "ac_cv_lib_$ac_lib_var=yes"
  1400. else
  1401.   rm -rf conftest*
  1402.   eval "ac_cv_lib_$ac_lib_var=no"
  1403. fi
  1404. rm -f conftest*
  1405. LIBS="$ac_save_LIBS"
  1406.  
  1407. fi
  1408. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1409.   echo "$ac_t""yes" 1>&6
  1410.   LIBTERMCAP=-ltermcap
  1411. else
  1412.   echo "$ac_t""no" 1>&6
  1413. fi
  1414.  
  1415. if test "$ac_cv_lib_termcap_tgetent" = no; then
  1416.   echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  1417. ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
  1418. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1419.   echo $ac_n "(cached) $ac_c" 1>&6
  1420. else
  1421.   ac_save_LIBS="$LIBS"
  1422. LIBS="-ltermlib  $LIBS"
  1423. cat > conftest.$ac_ext <<EOF
  1424. #line 1425 "configure"
  1425. #include "confdefs.h"
  1426. /* Override any gcc2 internal prototype to avoid an error.  */
  1427. /* We use char because int might match the return type of a gcc2
  1428.     builtin and then its argument prototype would still apply.  */
  1429. char tgetent();
  1430.  
  1431. int main() { return 0; }
  1432. int t() {
  1433. tgetent()
  1434. ; return 0; }
  1435. EOF
  1436. if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1437.   rm -rf conftest*
  1438.   eval "ac_cv_lib_$ac_lib_var=yes"
  1439. else
  1440.   rm -rf conftest*
  1441.   eval "ac_cv_lib_$ac_lib_var=no"
  1442. fi
  1443. rm -f conftest*
  1444. LIBS="$ac_save_LIBS"
  1445.  
  1446. fi
  1447. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1448.   echo "$ac_t""yes" 1>&6
  1449.   LIBTERMCAP=-ltermlib
  1450. else
  1451.   echo "$ac_t""no" 1>&6
  1452. fi
  1453.  
  1454. fi
  1455.  
  1456.  
  1457. if test -z "$LIBTERMCAP"; then
  1458.   # Some packages include termcap just to check terminal type validity;
  1459.   # for those cases, we really don't need termcap.
  1460.   LIBOBJS="$LIBOBJS stub_tgetent.o"
  1461. fi
  1462.  
  1463. # Only talk uses curses
  1464. if test "$enable_talk" != no; then
  1465.   _SAVE_LIBS="$LIBS"
  1466.   LIBS="$LIBTERMCAP"
  1467.   echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  1468. ac_lib_var=`echo curses'_'initscr | tr './+\055' '__p_'`
  1469. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1470.   echo $ac_n "(cached) $ac_c" 1>&6
  1471. else
  1472.   ac_save_LIBS="$LIBS"
  1473. LIBS="-lcurses  $LIBS"
  1474. cat > conftest.$ac_ext <<EOF
  1475. #line 1476 "configure"
  1476. #include "confdefs.h"
  1477. /* Override any gcc2 internal prototype to avoid an error.  */
  1478. /* We use char because int might match the return type of a gcc2
  1479.     builtin and then its argument prototype would still apply.  */
  1480. char initscr();
  1481.  
  1482. int main() { return 0; }
  1483. int t() {
  1484. initscr()
  1485. ; return 0; }
  1486. EOF
  1487. if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1488.   rm -rf conftest*
  1489.   eval "ac_cv_lib_$ac_lib_var=yes"
  1490. else
  1491.   rm -rf conftest*
  1492.   eval "ac_cv_lib_$ac_lib_var=no"
  1493. fi
  1494. rm -f conftest*
  1495. LIBS="$ac_save_LIBS"
  1496.  
  1497. fi
  1498. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1499.   echo "$ac_t""yes" 1>&6
  1500.   LIBCURSES="-lcurses"
  1501. else
  1502.   echo "$ac_t""no" 1>&6
  1503. fi
  1504.  
  1505.   if test "$LIBCURSES" -a "$LIBTERMCAP"; then
  1506.     echo $ac_n "checking whether curses needs $LIBTERMCAP""... $ac_c" 1>&6
  1507. if eval "test \"`echo '$''{'inetutils_cv_curses_needs_termcap'+set}'`\" = set"; then
  1508.   echo $ac_n "(cached) $ac_c" 1>&6
  1509. else
  1510.   LIBS="$LIBCURSES"
  1511.       cat > conftest.$ac_ext <<EOF
  1512. #line 1513 "configure"
  1513. #include "confdefs.h"
  1514. #include <curses.h>
  1515. int main() { return 0; }
  1516. int t() {
  1517. initscr ();
  1518. ; return 0; }
  1519. EOF
  1520. if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1521.   rm -rf conftest*
  1522.   inetutils_cv_curses_needs_termcap=no
  1523. else
  1524.   rm -rf conftest*
  1525.   inetutils_cv_curses_needs_termcap=yes
  1526. fi
  1527. rm -f conftest*
  1528.  
  1529. fi
  1530.  
  1531. echo "$ac_t""$inetutils_cv_curses_needs_termcap" 1>&6
  1532.   fi
  1533.   LIBS="$_SAVE_LIBS"
  1534. fi
  1535.  
  1536.  
  1537. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1538. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1539.   echo $ac_n "(cached) $ac_c" 1>&6
  1540. else
  1541.   cat > conftest.$ac_ext <<EOF
  1542. #line 1543 "configure"
  1543. #include "confdefs.h"
  1544. #include <sys/types.h>
  1545. #include <signal.h>
  1546. #ifdef signal
  1547. #undef signal
  1548. #endif
  1549. #ifdef __cplusplus
  1550. extern "C" void (*signal (int, void (*)(int)))(int);
  1551. #else
  1552. void (*signal ()) ();
  1553. #endif
  1554.  
  1555. int main() { return 0; }
  1556. int t() {
  1557. int i;
  1558. ; return 0; }
  1559. EOF
  1560. if { (eval echo configure:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1561.   rm -rf conftest*
  1562.   ac_cv_type_signal=void
  1563. else
  1564.   rm -rf conftest*
  1565.   ac_cv_type_signal=int
  1566. fi
  1567. rm -f conftest*
  1568.  
  1569. fi
  1570.  
  1571. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1572. cat >> confdefs.h <<EOF
  1573. #define RETSIGTYPE $ac_cv_type_signal
  1574. EOF
  1575.  
  1576.  
  1577.  
  1578. # Use `setpgid' if it's around, otherwise assume a BSD setpgrp
  1579. echo $ac_n "checking for setpgid""... $ac_c" 1>&6
  1580. if eval "test \"`echo '$''{'ac_cv_func_setpgid'+set}'`\" = set"; then
  1581.   echo $ac_n "(cached) $ac_c" 1>&6
  1582. else
  1583.   cat > conftest.$ac_ext <<EOF
  1584. #line 1585 "configure"
  1585. #include "confdefs.h"
  1586. /* System header to define __stub macros and hopefully few prototypes,
  1587.     which can conflict with char setpgid(); below.  */
  1588. #include <assert.h>
  1589. /* Override any gcc2 internal prototype to avoid an error.  */
  1590. /* We use char because int might match the return type of a gcc2
  1591.     builtin and then its argument prototype would still apply.  */
  1592. char setpgid();
  1593.  
  1594. int main() { return 0; }
  1595. int t() {
  1596.  
  1597. /* The GNU C library defines this for functions which it implements
  1598.     to always fail with ENOSYS.  Some functions are actually named
  1599.     something starting with __ and the normal name is an alias.  */
  1600. #if defined (__stub_setpgid) || defined (__stub___setpgid)
  1601. choke me
  1602. #else
  1603. setpgid();
  1604. #endif
  1605.  
  1606. ; return 0; }
  1607. EOF
  1608. if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1609.   rm -rf conftest*
  1610.   eval "ac_cv_func_setpgid=yes"
  1611. else
  1612.   rm -rf conftest*
  1613.   eval "ac_cv_func_setpgid=no"
  1614. fi
  1615. rm -f conftest*
  1616.  
  1617. fi
  1618. if eval "test \"`echo '$ac_cv_func_'setpgid`\" = yes"; then
  1619.   echo "$ac_t""yes" 1>&6
  1620.   :
  1621. else
  1622.   echo "$ac_t""no" 1>&6
  1623. cat >> confdefs.h <<\EOF
  1624. #define setpgid setpgrp
  1625. EOF
  1626.  
  1627. fi
  1628.  
  1629.  
  1630. if test "$enable_talk" = maybe; then
  1631.   enable_talk=$ac_cv_lib_curses_initscr
  1632. fi
  1633.  
  1634. echo $ac_n "checking for EWOULDBLOCK in <errno.h>""... $ac_c" 1>&6
  1635. if eval "test \"`echo '$''{'inetutils_cv_macro_ewouldblock'+set}'`\" = set"; then
  1636.   echo $ac_n "(cached) $ac_c" 1>&6
  1637. else
  1638.   cat > conftest.$ac_ext <<EOF
  1639. #line 1640 "configure"
  1640. #include "confdefs.h"
  1641. #include <errno.h>
  1642. #ifdef EWOULDBLOCK
  1643. HAVE_EWOULDBLOCK
  1644. #endif
  1645. EOF
  1646. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1647.   egrep "HAVE_EWOULDBLOCK" >/dev/null 2>&1; then
  1648.   rm -rf conftest*
  1649.   inetutils_cv_macro_ewouldblock=yes
  1650. else
  1651.   rm -rf conftest*
  1652.   inetutils_cv_macro_ewouldblock=no
  1653. fi
  1654. rm -f conftest*
  1655.  
  1656. fi
  1657.  
  1658. echo "$ac_t""$inetutils_cv_macro_ewouldblock" 1>&6
  1659. if test "$inetutils_cv_macro_ewouldblock" = no; then
  1660.   cat >> confdefs.h <<\EOF
  1661. #define EWOULDBLOCK EAGAIN
  1662. EOF
  1663.  
  1664. fi
  1665.  
  1666. echo $ac_n "checking for __P""... $ac_c" 1>&6
  1667. if eval "test \"`echo '$''{'inetutils_cv_macro___p'+set}'`\" = set"; then
  1668.   echo $ac_n "(cached) $ac_c" 1>&6
  1669. else
  1670.   cat > conftest.$ac_ext <<EOF
  1671. #line 1672 "configure"
  1672. #include "confdefs.h"
  1673. #ifdef HAVE_SYS_CDEFS_H
  1674. #include <sys/cdefs.h>
  1675. #endif
  1676. #ifdef __P
  1677. HAVE___P
  1678. #endif
  1679. EOF
  1680. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1681.   egrep "HAVE___P" >/dev/null 2>&1; then
  1682.   rm -rf conftest*
  1683.   inetutils_cv_macro___p=yes
  1684. else
  1685.   rm -rf conftest*
  1686.   inetutils_cv_macro___p=no
  1687. fi
  1688. rm -f conftest*
  1689.  
  1690. fi
  1691.  
  1692. echo "$ac_t""$inetutils_cv_macro___p" 1>&6
  1693. if test "$inetutils_cv_macro___p" = yes; then
  1694.   cat >> confdefs.h <<\EOF
  1695. #define HAVE___P 1
  1696. EOF
  1697.  
  1698. fi
  1699.  
  1700. # This can't just be a compile-check, as gcc somtimes accepts the syntax even
  1701. # if feature isn't actually supported.
  1702. echo $ac_n "checking whether gcc weak references work""... $ac_c" 1>&6
  1703. if eval "test \"`echo '$''{'inetutils_cv_weak_refs'+set}'`\" = set"; then
  1704.   echo $ac_n "(cached) $ac_c" 1>&6
  1705. else
  1706.   cat > conftest.$ac_ext <<EOF
  1707. #line 1708 "configure"
  1708. #include "confdefs.h"
  1709.  
  1710. int main() { return 0; }
  1711. int t() {
  1712. extern char *not_defined (char *, char *) __attribute__ ((weak));
  1713.    if (not_defined) puts ("yes"); 
  1714. ; return 0; }
  1715. EOF
  1716. if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1717.   rm -rf conftest*
  1718.   inetutils_cv_weak_refs=yes
  1719. else
  1720.   rm -rf conftest*
  1721.   inetutils_cv_weak_refs=no
  1722. fi
  1723. rm -f conftest*
  1724.  
  1725. fi
  1726.  
  1727. echo "$ac_t""$inetutils_cv_weak_refs" 1>&6
  1728. if test "$inetutils_cv_weak_refs" = yes; then
  1729.   cat >> confdefs.h <<\EOF
  1730. #define HAVE_WEAK_REFS 1
  1731. EOF
  1732.  
  1733. else
  1734.   echo $ac_n "checking whether pragma weak references work""... $ac_c" 1>&6
  1735. if eval "test \"`echo '$''{'inetutils_cv_pragma_weak_refs'+set}'`\" = set"; then
  1736.   echo $ac_n "(cached) $ac_c" 1>&6
  1737. else
  1738.   cat > conftest.$ac_ext <<EOF
  1739. #line 1740 "configure"
  1740. #include "confdefs.h"
  1741.  
  1742. int main() { return 0; }
  1743. int t() {
  1744. extern char *not_defined (char *, char *);
  1745. #pragma weak not_defined
  1746.      if (not_defined) puts ("yes"); 
  1747. ; return 0; }
  1748. EOF
  1749. if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1750.   rm -rf conftest*
  1751.   inetutils_cv_pragma_weak_refs=yes
  1752. else
  1753.   rm -rf conftest*
  1754.   inetutils_cv_pragma_weak_refs=no
  1755. fi
  1756. rm -f conftest*
  1757.  
  1758. fi
  1759.  
  1760. echo "$ac_t""$inetutils_cv_pragma_weak_refs" 1>&6
  1761.   if test "$inetutils_cv_pragma_weak_refs" = yes; then
  1762.     cat >> confdefs.h <<\EOF
  1763. #define HAVE_PRAGMA_WEAK_REFS 1
  1764. EOF
  1765.  
  1766.   else
  1767.     echo $ac_n "checking whether asm weak references work""... $ac_c" 1>&6
  1768. if eval "test \"`echo '$''{'inetutils_cv_asm_weak_refs'+set}'`\" = set"; then
  1769.   echo $ac_n "(cached) $ac_c" 1>&6
  1770. else
  1771.   cat > conftest.$ac_ext <<EOF
  1772. #line 1773 "configure"
  1773. #include "confdefs.h"
  1774.  
  1775. int main() { return 0; }
  1776. int t() {
  1777. extern char *not_defined (char *, char *);
  1778.        asm (".weak not_defined");
  1779.        if (not_defined) puts ("yes"); 
  1780. ; return 0; }
  1781. EOF
  1782. if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1783.   rm -rf conftest*
  1784.   inetutils_cv_asm_weak_refs=yes
  1785. else
  1786.   rm -rf conftest*
  1787.   inetutils_cv_asm_weak_refs=no
  1788. fi
  1789. rm -f conftest*
  1790.  
  1791. fi
  1792.  
  1793. echo "$ac_t""$inetutils_cv_asm_weak_refs" 1>&6
  1794.     if test "$inetutils_cv_asm_weak_refs" = yes; then
  1795.       cat >> confdefs.h <<\EOF
  1796. #define HAVE_ASM_WEAK_REFS 1
  1797. EOF
  1798.  
  1799.     fi
  1800.   fi
  1801. fi
  1802.  
  1803. echo $ac_n "checking whether struct stat has timespec fields""... $ac_c" 1>&6
  1804. if eval "test \"`echo '$''{'inetutils_cv_struct_st_timespec'+set}'`\" = set"; then
  1805.   echo $ac_n "(cached) $ac_c" 1>&6
  1806. else
  1807.   cat > conftest.$ac_ext <<EOF
  1808. #line 1809 "configure"
  1809. #include "confdefs.h"
  1810. #include <sys/types.h>
  1811. #include <sys/stat.h>
  1812. int main() { return 0; }
  1813. int t() {
  1814. struct stat st; st.st_mtimespec.ts_nsec = 0;
  1815. ; return 0; }
  1816. EOF
  1817. if { (eval echo configure:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1818.   rm -rf conftest*
  1819.   inetutils_cv_struct_st_timespec=yes
  1820. else
  1821.   rm -rf conftest*
  1822.   inetutils_cv_struct_st_timespec=no
  1823. fi
  1824. rm -f conftest*
  1825.  
  1826. fi
  1827.  
  1828. echo "$ac_t""$inetutils_cv_struct_st_timespec" 1>&6
  1829. if test "$inetutils_cv_struct_st_timespec" = yes; then
  1830.   cat >> confdefs.h <<\EOF
  1831. #define HAVE___P 1
  1832. EOF
  1833.  
  1834. fi
  1835.  
  1836. if test "$inetutils_cv_struct_st_timespec" = yes; then
  1837.   cat >> confdefs.h <<\EOF
  1838. #define HAVE_ST_TIMESPEC 1
  1839. EOF
  1840.  
  1841. else
  1842.   echo $ac_n "checking whether struct stat has time_usec fields""... $ac_c" 1>&6
  1843. if eval "test \"`echo '$''{'inetutils_cv_struct_st_time_usec'+set}'`\" = set"; then
  1844.   echo $ac_n "(cached) $ac_c" 1>&6
  1845. else
  1846.   cat > conftest.$ac_ext <<EOF
  1847. #line 1848 "configure"
  1848. #include "confdefs.h"
  1849. #include <sys/types.h>
  1850. #include <sys/stat.h>
  1851. int main() { return 0; }
  1852. int t() {
  1853. struct stat st; st.st_mtime_usec = 0;
  1854. ; return 0; }
  1855. EOF
  1856. if { (eval echo configure:1857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1857.   rm -rf conftest*
  1858.   inetutils_cv_struct_st_time_usec=yes
  1859. else
  1860.   rm -rf conftest*
  1861.   inetutils_cv_struct_st_time_usec=no
  1862. fi
  1863. rm -f conftest*
  1864.  
  1865. fi
  1866.  
  1867. echo "$ac_t""$inetutils_cv_struct_st_time_usec" 1>&6
  1868.  
  1869.   if test "$inetutils_cv_struct_st_time_usec" = yes; then
  1870.     cat >> confdefs.h <<\EOF
  1871. #define HAVE_ST_TIME_USEC 1
  1872. EOF
  1873.  
  1874.   fi
  1875. fi
  1876.  
  1877. if test "$enable_talk" = yes; then
  1878.   SERVERS="$SERVERS talkd"
  1879.   CLIENTS="$CLIENTS talk"
  1880.  
  1881.   echo $ac_n "checking for struct osockaddr in <sys/socket.h>""... $ac_c" 1>&6
  1882. if eval "test \"`echo '$''{'inetutils_cv_struct_osockaddr'+set}'`\" = set"; then
  1883.   echo $ac_n "(cached) $ac_c" 1>&6
  1884. else
  1885.   cat > conftest.$ac_ext <<EOF
  1886. #line 1887 "configure"
  1887. #include "confdefs.h"
  1888. #include <sys/types.h>
  1889. #include <sys/socket.h>
  1890. int main() { return 0; }
  1891. int t() {
  1892. struct osockaddr sa;
  1893. ; return 0; }
  1894. EOF
  1895. if { (eval echo configure:1896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1896.   rm -rf conftest*
  1897.   inetutils_cv_struct_osockaddr=yes
  1898. else
  1899.   rm -rf conftest*
  1900.   inetutils_cv_struct_osockaddr=no
  1901. fi
  1902. rm -f conftest*
  1903.  
  1904. fi
  1905.  
  1906. echo "$ac_t""$inetutils_cv_struct_osockaddr" 1>&6
  1907.  
  1908.   if test "$inetutils_cv_struct_osockaddr" = yes; then
  1909.     cat >> confdefs.h <<\EOF
  1910. #define HAVE_OSOCKADDR 1
  1911. EOF
  1912.  
  1913.   else
  1914.     # Use our own definition
  1915.     INCLUDES="$INCLUDES osockaddr.h"
  1916.   fi
  1917. fi
  1918. # Update SUBDIRS regardless
  1919. SUBDIRS="$SUBDIRS talkd talk"
  1920.  
  1921. SERVERS_OR_CLIENTS=
  1922. if test "$enable_servers" = yes; then
  1923.   SERVERS_OR_CLIENTS="$SERVERS"
  1924. fi
  1925. if test "$enable_clients" = yes; then
  1926.   SERVERS_OR_CLIENTS="$SERVERS_OR_CLIENTS $CLIENTS"
  1927. fi
  1928.  
  1929.  
  1930. if test "$enable_authentication" = yes; then
  1931.   cat >> confdefs.h <<\EOF
  1932. #define AUTHENTICATION 1
  1933. EOF
  1934.  
  1935. fi
  1936. if test "$enable_encryption" = yes; then
  1937.   cat >> confdefs.h <<\EOF
  1938. #define ENCRYPTION 1
  1939. EOF
  1940.  
  1941. fi
  1942.  
  1943. if test "$enable_authentication" = yes -a "$ac_cv_lib_krb_krb_mk_req" = yes; then
  1944.   cat >> confdefs.h <<\EOF
  1945. #define KRB4 1
  1946. EOF
  1947.  
  1948. fi
  1949. if test "$enable_encryption" = yes -a "$ac_cv_lib_des_des_key_sched" = yes; then
  1950.   cat >> confdefs.h <<\EOF
  1951. #define DES_ENCRYPTION 1
  1952. EOF
  1953.  
  1954. fi
  1955.  
  1956. # We use our own version of getopt if the system one doesn't have getopt_long
  1957. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  1958. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  1959.   echo $ac_n "(cached) $ac_c" 1>&6
  1960. else
  1961.   cat > conftest.$ac_ext <<EOF
  1962. #line 1963 "configure"
  1963. #include "confdefs.h"
  1964. /* System header to define __stub macros and hopefully few prototypes,
  1965.     which can conflict with char getopt_long(); below.  */
  1966. #include <assert.h>
  1967. /* Override any gcc2 internal prototype to avoid an error.  */
  1968. /* We use char because int might match the return type of a gcc2
  1969.     builtin and then its argument prototype would still apply.  */
  1970. char getopt_long();
  1971.  
  1972. int main() { return 0; }
  1973. int t() {
  1974.  
  1975. /* The GNU C library defines this for functions which it implements
  1976.     to always fail with ENOSYS.  Some functions are actually named
  1977.     something starting with __ and the normal name is an alias.  */
  1978. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  1979. choke me
  1980. #else
  1981. getopt_long();
  1982. #endif
  1983.  
  1984. ; return 0; }
  1985. EOF
  1986. if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1987.   rm -rf conftest*
  1988.   eval "ac_cv_func_getopt_long=yes"
  1989. else
  1990.   rm -rf conftest*
  1991.   eval "ac_cv_func_getopt_long=no"
  1992. fi
  1993. rm -f conftest*
  1994.  
  1995. fi
  1996. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  1997.   echo "$ac_t""yes" 1>&6
  1998.   :
  1999. else
  2000.   echo "$ac_t""no" 1>&6
  2001. INCLUDES="$INCLUDES getopt.h"
  2002.   LIBOBJS="$LIBOBJS getopt.o getopt1.o"
  2003. fi
  2004.  
  2005.  
  2006. # Supply versions of the BSD error reporting functions if the system doesn't
  2007. echo $ac_n "checking for verrx""... $ac_c" 1>&6
  2008. if eval "test \"`echo '$''{'ac_cv_func_verrx'+set}'`\" = set"; then
  2009.   echo $ac_n "(cached) $ac_c" 1>&6
  2010. else
  2011.   cat > conftest.$ac_ext <<EOF
  2012. #line 2013 "configure"
  2013. #include "confdefs.h"
  2014. /* System header to define __stub macros and hopefully few prototypes,
  2015.     which can conflict with char verrx(); below.  */
  2016. #include <assert.h>
  2017. /* Override any gcc2 internal prototype to avoid an error.  */
  2018. /* We use char because int might match the return type of a gcc2
  2019.     builtin and then its argument prototype would still apply.  */
  2020. char verrx();
  2021.  
  2022. int main() { return 0; }
  2023. int t() {
  2024.  
  2025. /* The GNU C library defines this for functions which it implements
  2026.     to always fail with ENOSYS.  Some functions are actually named
  2027.     something starting with __ and the normal name is an alias.  */
  2028. #if defined (__stub_verrx) || defined (__stub___verrx)
  2029. choke me
  2030. #else
  2031. verrx();
  2032. #endif
  2033.  
  2034. ; return 0; }
  2035. EOF
  2036. if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2037.   rm -rf conftest*
  2038.   eval "ac_cv_func_verrx=yes"
  2039. else
  2040.   rm -rf conftest*
  2041.   eval "ac_cv_func_verrx=no"
  2042. fi
  2043. rm -f conftest*
  2044.  
  2045. fi
  2046. if eval "test \"`echo '$ac_cv_func_'verrx`\" = yes"; then
  2047.   echo "$ac_t""yes" 1>&6
  2048.   :
  2049. else
  2050.   echo "$ac_t""no" 1>&6
  2051. INCLUDES="$INCLUDES err.h"
  2052.   LIBOBJS="$LIBOBJS err.o"
  2053. fi
  2054.  
  2055.  
  2056. # See if the system has strerror, and replace it if not
  2057. echo $ac_n "checking for strerror""... $ac_c" 1>&6
  2058. if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
  2059.   echo $ac_n "(cached) $ac_c" 1>&6
  2060. else
  2061.   cat > conftest.$ac_ext <<EOF
  2062. #line 2063 "configure"
  2063. #include "confdefs.h"
  2064. /* System header to define __stub macros and hopefully few prototypes,
  2065.     which can conflict with char strerror(); below.  */
  2066. #include <assert.h>
  2067. /* Override any gcc2 internal prototype to avoid an error.  */
  2068. /* We use char because int might match the return type of a gcc2
  2069.     builtin and then its argument prototype would still apply.  */
  2070. char strerror();
  2071.  
  2072. int main() { return 0; }
  2073. int t() {
  2074.  
  2075. /* The GNU C library defines this for functions which it implements
  2076.     to always fail with ENOSYS.  Some functions are actually named
  2077.     something starting with __ and the normal name is an alias.  */
  2078. #if defined (__stub_strerror) || defined (__stub___strerror)
  2079. choke me
  2080. #else
  2081. strerror();
  2082. #endif
  2083.  
  2084. ; return 0; }
  2085. EOF
  2086. if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2087.   rm -rf conftest*
  2088.   eval "ac_cv_func_strerror=yes"
  2089. else
  2090.   rm -rf conftest*
  2091.   eval "ac_cv_func_strerror=no"
  2092. fi
  2093. rm -f conftest*
  2094.  
  2095. fi
  2096. if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
  2097.   echo "$ac_t""yes" 1>&6
  2098.   :
  2099. else
  2100.   echo "$ac_t""no" 1>&6
  2101. LIBOBJS="$LIBOBJS strerror.o"
  2102. fi
  2103.  
  2104. if test "$ac_cv_func_strerror" = no; then
  2105.   # No strerror, so see if the SYS_ERRLIST variable can be used by ours
  2106.   echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  2107. if eval "test \"`echo '$''{'ac_cv_func_sys_errlist'+set}'`\" = set"; then
  2108.   echo $ac_n "(cached) $ac_c" 1>&6
  2109. else
  2110.   cat > conftest.$ac_ext <<EOF
  2111. #line 2112 "configure"
  2112. #include "confdefs.h"
  2113. /* System header to define __stub macros and hopefully few prototypes,
  2114.     which can conflict with char sys_errlist(); below.  */
  2115. #include <assert.h>
  2116. /* Override any gcc2 internal prototype to avoid an error.  */
  2117. /* We use char because int might match the return type of a gcc2
  2118.     builtin and then its argument prototype would still apply.  */
  2119. char sys_errlist();
  2120.  
  2121. int main() { return 0; }
  2122. int t() {
  2123.  
  2124. /* The GNU C library defines this for functions which it implements
  2125.     to always fail with ENOSYS.  Some functions are actually named
  2126.     something starting with __ and the normal name is an alias.  */
  2127. #if defined (__stub_sys_errlist) || defined (__stub___sys_errlist)
  2128. choke me
  2129. #else
  2130. sys_errlist();
  2131. #endif
  2132.  
  2133. ; return 0; }
  2134. EOF
  2135. if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2136.   rm -rf conftest*
  2137.   eval "ac_cv_func_sys_errlist=yes"
  2138. else
  2139.   rm -rf conftest*
  2140.   eval "ac_cv_func_sys_errlist=no"
  2141. fi
  2142. rm -f conftest*
  2143.  
  2144. fi
  2145. if eval "test \"`echo '$ac_cv_func_'sys_errlist`\" = yes"; then
  2146.   echo "$ac_t""yes" 1>&6
  2147.   :
  2148. else
  2149.   echo "$ac_t""no" 1>&6
  2150. fi
  2151.  
  2152.   if test "$ac_cv_func_sys_errlist" = yes; then
  2153.     echo $ac_n "checking whether sys_errlist is declared""... $ac_c" 1>&6
  2154. if eval "test \"`echo '$''{'inetutils_cv_sys_errlist_decl'+set}'`\" = set"; then
  2155.   echo $ac_n "(cached) $ac_c" 1>&6
  2156. else
  2157.   cat > conftest.$ac_ext <<EOF
  2158. #line 2159 "configure"
  2159. #include "confdefs.h"
  2160. #include <stdio.h>
  2161. #ifdef HAVE_ERRNO_H
  2162. #include <errno.h>
  2163. #endif
  2164. int main() { return 0; }
  2165. int t() {
  2166. char *x = sys_errlistsys_nerrs - 1;
  2167. ; return 0; }
  2168. EOF
  2169. if { (eval echo configure:2170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2170.   rm -rf conftest*
  2171.   inetutils_cv_sys_errlist_decl=yes
  2172. else
  2173.   rm -rf conftest*
  2174.   inetutils_cv_sys_errlist_decl=no
  2175. fi
  2176. rm -f conftest*
  2177.  
  2178. fi
  2179.  
  2180. echo "$ac_t""$inetutils_cv_sys_errlist_decl" 1>&6
  2181.     if test "$inetutils_cv_sys_errlist_decl" = yes; then
  2182.       cat >> confdefs.h <<\EOF
  2183. #define HAVE_SYS_ERRLIST_DECL 1
  2184. EOF
  2185.  
  2186.     fi
  2187.   fi
  2188. fi
  2189.  
  2190. echo $ac_n "checking for sig_t""... $ac_c" 1>&6
  2191. if eval "test \"`echo '$''{'inetutils_cv_type_sig_t'+set}'`\" = set"; then
  2192.   echo $ac_n "(cached) $ac_c" 1>&6
  2193. else
  2194.   cat > conftest.$ac_ext <<EOF
  2195. #line 2196 "configure"
  2196. #include "confdefs.h"
  2197. #include <sys/types.h>
  2198. #include <signal.h>
  2199. int main() { return 0; }
  2200. int t() {
  2201. sig_t foo;
  2202. ; return 0; }
  2203. EOF
  2204. if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2205.   rm -rf conftest*
  2206.   inetutils_cv_type_sig_t=yes
  2207. else
  2208.   rm -rf conftest*
  2209.   inetutils_cv_type_sig_t=no
  2210. fi
  2211. rm -f conftest*
  2212.  
  2213. fi
  2214.  
  2215. echo "$ac_t""$inetutils_cv_type_sig_t" 1>&6
  2216. if test "$inetutils_cv_type_sig_t" = yes; then
  2217.   cat >> confdefs.h <<\EOF
  2218. #define HAVE_SIG_T 1
  2219. EOF
  2220.  
  2221. fi
  2222.  
  2223. # See if the __PROGNAME variable is defined, otherwise use our own.
  2224. echo $ac_n "checking for __progname""... $ac_c" 1>&6
  2225. if eval "test \"`echo '$''{'ac_cv_func___progname'+set}'`\" = set"; then
  2226.   echo $ac_n "(cached) $ac_c" 1>&6
  2227. else
  2228.   cat > conftest.$ac_ext <<EOF
  2229. #line 2230 "configure"
  2230. #include "confdefs.h"
  2231. /* System header to define __stub macros and hopefully few prototypes,
  2232.     which can conflict with char __progname(); below.  */
  2233. #include <assert.h>
  2234. /* Override any gcc2 internal prototype to avoid an error.  */
  2235. /* We use char because int might match the return type of a gcc2
  2236.     builtin and then its argument prototype would still apply.  */
  2237. char __progname();
  2238.  
  2239. int main() { return 0; }
  2240. int t() {
  2241.  
  2242. /* The GNU C library defines this for functions which it implements
  2243.     to always fail with ENOSYS.  Some functions are actually named
  2244.     something starting with __ and the normal name is an alias.  */
  2245. #if defined (__stub___progname) || defined (__stub_____progname)
  2246. choke me
  2247. #else
  2248. __progname();
  2249. #endif
  2250.  
  2251. ; return 0; }
  2252. EOF
  2253. if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2254.   rm -rf conftest*
  2255.   eval "ac_cv_func___progname=yes"
  2256. else
  2257.   rm -rf conftest*
  2258.   eval "ac_cv_func___progname=no"
  2259. fi
  2260. rm -f conftest*
  2261.  
  2262. fi
  2263. if eval "test \"`echo '$ac_cv_func_'__progname`\" = yes"; then
  2264.   echo "$ac_t""yes" 1>&6
  2265.   cat >> confdefs.h <<\EOF
  2266. #define HAVE___PROGNAME 1
  2267. EOF
  2268.  
  2269. else
  2270.   echo "$ac_t""no" 1>&6
  2271. LIBOBJS="$LIBOBJS __progname.o"
  2272. fi
  2273.  
  2274.  
  2275. # See if snprintf exists, otherwise just use a bogus version
  2276. echo $ac_n "checking for snprintf""... $ac_c" 1>&6
  2277. if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
  2278.   echo $ac_n "(cached) $ac_c" 1>&6
  2279. else
  2280.   cat > conftest.$ac_ext <<EOF
  2281. #line 2282 "configure"
  2282. #include "confdefs.h"
  2283. /* System header to define __stub macros and hopefully few prototypes,
  2284.     which can conflict with char snprintf(); below.  */
  2285. #include <assert.h>
  2286. /* Override any gcc2 internal prototype to avoid an error.  */
  2287. /* We use char because int might match the return type of a gcc2
  2288.     builtin and then its argument prototype would still apply.  */
  2289. char snprintf();
  2290.  
  2291. int main() { return 0; }
  2292. int t() {
  2293.  
  2294. /* The GNU C library defines this for functions which it implements
  2295.     to always fail with ENOSYS.  Some functions are actually named
  2296.     something starting with __ and the normal name is an alias.  */
  2297. #if defined (__stub_snprintf) || defined (__stub___snprintf)
  2298. choke me
  2299. #else
  2300. snprintf();
  2301. #endif
  2302.  
  2303. ; return 0; }
  2304. EOF
  2305. if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2306.   rm -rf conftest*
  2307.   eval "ac_cv_func_snprintf=yes"
  2308. else
  2309.   rm -rf conftest*
  2310.   eval "ac_cv_func_snprintf=no"
  2311. fi
  2312. rm -f conftest*
  2313.  
  2314. fi
  2315. if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
  2316.   echo "$ac_t""yes" 1>&6
  2317.   cat >> confdefs.h <<\EOF
  2318. #define HAVE_SNPRINTF 1
  2319. EOF
  2320.  
  2321. else
  2322.   echo "$ac_t""no" 1>&6
  2323. LIBOBJS="$LIBOBJS snprintf.o"
  2324. fi
  2325.  
  2326.  
  2327. # Supply optional header files by linking a copy into the object include dir
  2328. _ISRCS="`for I in $INCLUDES; do echo $ac_n ' 'headers/$I$ac_c; done`"
  2329. _IDSTS="`for I in $INCLUDES; do echo $ac_n ' 'include/$I$ac_c; done`"
  2330.  
  2331.  
  2332. SUBDIR_MAKEFILES="`for D in $SUBDIRS; do echo $ac_n ' '$D/Makefile$ac_c; done`"
  2333. trap '' 1 2 15
  2334. cat > confcache <<\EOF
  2335. # This file is a shell script that caches the results of configure
  2336. # tests run on this system so they can be shared between configure
  2337. # scripts and configure runs.  It is not useful on other systems.
  2338. # If it contains results you don't want to keep, you may remove or edit it.
  2339. #
  2340. # By default, configure uses ./config.cache as the cache file,
  2341. # creating it if it does not exist already.  You can give configure
  2342. # the --cache-file=FILE option to use a different cache file; that is
  2343. # what configure does when it calls configure scripts in
  2344. # subdirectories, so they share the cache.
  2345. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2346. # config.status only pays attention to the cache file if you give it the
  2347. # --recheck option to rerun configure.
  2348. #
  2349. EOF
  2350. # Ultrix sh set writes to stderr and can't be redirected directly,
  2351. # and sets the high bit in the cache file unless we assign to the vars.
  2352. (set) 2>&1 |
  2353.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2354.   >> confcache
  2355. if cmp -s $cache_file confcache; then
  2356.   :
  2357. else
  2358.   if test -w $cache_file; then
  2359.     echo "updating cache $cache_file"
  2360.     cat confcache > $cache_file
  2361.   else
  2362.     echo "not updating unwritable cache $cache_file"
  2363.   fi
  2364. fi
  2365. rm -f confcache
  2366.  
  2367. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2368.  
  2369. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2370. # Let make expand exec_prefix.
  2371. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2372.  
  2373. # Any assignment to VPATH causes Sun make to only execute
  2374. # the first set of double-colon rules, so remove it if not needed.
  2375. # If there is a colon in the path, we need to keep it.
  2376. if test "x$srcdir" = x.; then
  2377.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2378. fi
  2379.  
  2380. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2381.  
  2382. DEFS=-DHAVE_CONFIG_H
  2383.  
  2384. # Without the "./", some shells look in PATH for config.status.
  2385. : ${CONFIG_STATUS=./config.status}
  2386.  
  2387. echo creating $CONFIG_STATUS
  2388. rm -f $CONFIG_STATUS
  2389. cat > $CONFIG_STATUS <<EOF
  2390. #! /bin/sh
  2391. # Generated automatically by configure.
  2392. # Run this file to recreate the current configuration.
  2393. # This directory was configured as follows,
  2394. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2395. #
  2396. # $0 $ac_configure_args
  2397. #
  2398. # Compiler output produced by configure, useful for debugging
  2399. # configure, is in ./config.log if it exists.
  2400.  
  2401. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2402. for ac_option
  2403. do
  2404.   case "\$ac_option" in
  2405.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2406.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2407.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2408.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2409.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2410.     exit 0 ;;
  2411.   -help | --help | --hel | --he | --h)
  2412.     echo "\$ac_cs_usage"; exit 0 ;;
  2413.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2414.   esac
  2415. done
  2416.  
  2417. ac_given_srcdir=$srcdir
  2418. ac_given_INSTALL="$INSTALL"
  2419.  
  2420. trap 'rm -fr `echo "Makefile config.make $SUBDIR_MAKEFILES include/config.h:headers/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2421. EOF
  2422. cat >> $CONFIG_STATUS <<EOF
  2423.  
  2424. # Protect against being on the right side of a sed subst in config.status.
  2425. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2426.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2427. $ac_vpsub
  2428. $extrasub
  2429. s%@CFLAGS@%$CFLAGS%g
  2430. s%@CPPFLAGS@%$CPPFLAGS%g
  2431. s%@CXXFLAGS@%$CXXFLAGS%g
  2432. s%@DEFS@%$DEFS%g
  2433. s%@LDFLAGS@%$LDFLAGS%g
  2434. s%@LIBS@%$LIBS%g
  2435. s%@exec_prefix@%$exec_prefix%g
  2436. s%@prefix@%$prefix%g
  2437. s%@program_transform_name@%$program_transform_name%g
  2438. s%@bindir@%$bindir%g
  2439. s%@sbindir@%$sbindir%g
  2440. s%@libexecdir@%$libexecdir%g
  2441. s%@datadir@%$datadir%g
  2442. s%@sysconfdir@%$sysconfdir%g
  2443. s%@sharedstatedir@%$sharedstatedir%g
  2444. s%@localstatedir@%$localstatedir%g
  2445. s%@libdir@%$libdir%g
  2446. s%@includedir@%$includedir%g
  2447. s%@oldincludedir@%$oldincludedir%g
  2448. s%@infodir@%$infodir%g
  2449. s%@mandir@%$mandir%g
  2450. s%@COMMON@%$COMMON%g
  2451. s%@SERVERS@%$SERVERS%g
  2452. s%@CLIENTS@%$CLIENTS%g
  2453. s%@SUBDIRS@%$SUBDIRS%g
  2454. s%@LIBOBJS@%$LIBOBJS%g
  2455. s%@SET_MAKE@%$SET_MAKE%g
  2456. s%@CC@%$CC%g
  2457. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2458. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2459. s%@YACC@%$YACC%g
  2460. s%@host@%$host%g
  2461. s%@host_alias@%$host_alias%g
  2462. s%@host_cpu@%$host_cpu%g
  2463. s%@host_vendor@%$host_vendor%g
  2464. s%@host_os@%$host_os%g
  2465. s%@build@%$build%g
  2466. s%@build_alias@%$build_alias%g
  2467. s%@build_cpu@%$build_cpu%g
  2468. s%@build_vendor@%$build_vendor%g
  2469. s%@build_os@%$build_os%g
  2470. s%@AR@%$AR%g
  2471. s%@RANLIB@%$RANLIB%g
  2472. s%@RM@%$RM%g
  2473. s%@CPP@%$CPP%g
  2474. s%@LIBUTIL@%$LIBUTIL%g
  2475. s%@LIBCRYPT@%$LIBCRYPT%g
  2476. s%@LIBAUTH@%$LIBAUTH%g
  2477. s%@LIBTERMCAP@%$LIBTERMCAP%g
  2478. s%@LIBCURSES@%$LIBCURSES%g
  2479. s%@SERVERS_OR_CLIENTS@%$SERVERS_OR_CLIENTS%g
  2480.  
  2481. CEOF
  2482. EOF
  2483. cat >> $CONFIG_STATUS <<EOF
  2484.  
  2485. CONFIG_FILES=\${CONFIG_FILES-"Makefile config.make $SUBDIR_MAKEFILES"}
  2486. EOF
  2487. cat >> $CONFIG_STATUS <<\EOF
  2488. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2489.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2490.   case "$ac_file" in
  2491.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2492.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2493.   *) ac_file_in="${ac_file}.in" ;;
  2494.   esac
  2495.  
  2496.   # Adjust relative srcdir, etc. for subdirectories.
  2497.  
  2498.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2499.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2500.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2501.     # The file is in a subdirectory.
  2502.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2503.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2504.     # A "../" for each directory in $ac_dir_suffix.
  2505.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2506.   else
  2507.     ac_dir_suffix= ac_dots=
  2508.   fi
  2509.  
  2510.   case "$ac_given_srcdir" in
  2511.   .)  srcdir=.
  2512.       if test -z "$ac_dots"; then top_srcdir=.
  2513.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2514.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2515.   *) # Relative path.
  2516.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2517.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2518.   esac
  2519.  
  2520.   case "$ac_given_INSTALL" in
  2521.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2522.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2523.   esac
  2524.   echo creating "$ac_file"
  2525.   rm -f "$ac_file"
  2526.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2527.   case "$ac_file" in
  2528.   *Makefile*) ac_comsub="1i\\
  2529. # $configure_input" ;;
  2530.   *) ac_comsub= ;;
  2531.   esac
  2532.   sed -e "$ac_comsub
  2533. s%@configure_input@%$configure_input%g
  2534. s%@srcdir@%$srcdir%g
  2535. s%@top_srcdir@%$top_srcdir%g
  2536. s%@INSTALL@%$INSTALL%g
  2537. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2538. fi; done
  2539. rm -f conftest.subs
  2540.  
  2541. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2542. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2543. #
  2544. # ac_d sets the value in "#define NAME VALUE" lines.
  2545. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2546. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2547. ac_dC='\3'
  2548. ac_dD='%g'
  2549. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2550. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2551. ac_uB='\([     ]\)%\1#\2define\3'
  2552. ac_uC=' '
  2553. ac_uD='\4%g'
  2554. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2555. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2556. ac_eB='$%\1#\2define\3'
  2557. ac_eC=' '
  2558. ac_eD='%g'
  2559.  
  2560. CONFIG_HEADERS=${CONFIG_HEADERS-"include/config.h:headers/config.h.in"}
  2561. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2562.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2563.   case "$ac_file" in
  2564.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2565.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2566.   *) ac_file_in="${ac_file}.in" ;;
  2567.   esac
  2568.  
  2569.   echo creating $ac_file
  2570.  
  2571.   rm -f conftest.frag conftest.in conftest.out
  2572.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2573.  
  2574. EOF
  2575.  
  2576. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2577. # the proper values into config.h.in to produce config.h.  And first:
  2578. # Protect against being on the right side of a sed subst in config.status.
  2579. # Protect against being in an unquoted here document in config.status.
  2580. rm -f conftest.vals
  2581. cat > conftest.hdr <<\EOF
  2582. s/[\\&%]/\\&/g
  2583. s%[\\$`]%\\&%g
  2584. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2585. s%ac_d%ac_u%gp
  2586. s%ac_u%ac_e%gp
  2587. EOF
  2588. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2589. rm -f conftest.hdr
  2590.  
  2591. # This sed command replaces #undef with comments.  This is necessary, for
  2592. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2593. # on some systems where configure will not decide to define it.
  2594. cat >> conftest.vals <<\EOF
  2595. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2596. EOF
  2597.  
  2598. # Break up conftest.vals because some shells have a limit on
  2599. # the size of here documents, and old seds have small limits too.
  2600. # Maximum number of lines to put in a single here document.
  2601. ac_max_here_lines=12
  2602.  
  2603. rm -f conftest.tail
  2604. while :
  2605. do
  2606.   ac_lines=`grep -c . conftest.vals`
  2607.   # grep -c gives empty output for an empty file on some AIX systems.
  2608.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2609.   # Write a limited-size here document to conftest.frag.
  2610.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2611.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2612.   echo 'CEOF
  2613.   sed -f conftest.frag conftest.in > conftest.out
  2614.   rm -f conftest.in
  2615.   mv conftest.out conftest.in
  2616. ' >> $CONFIG_STATUS
  2617.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2618.   rm -f conftest.vals
  2619.   mv conftest.tail conftest.vals
  2620. done
  2621. rm -f conftest.vals
  2622.  
  2623. cat >> $CONFIG_STATUS <<\EOF
  2624.   rm -f conftest.frag conftest.h
  2625.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2626.   cat conftest.in >> conftest.h
  2627.   rm -f conftest.in
  2628.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2629.     echo "$ac_file is unchanged"
  2630.     rm -f conftest.h
  2631.   else
  2632.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2633.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2634.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2635.       # The file is in a subdirectory.
  2636.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2637.     fi
  2638.     rm -f $ac_file
  2639.     mv conftest.h $ac_file
  2640.   fi
  2641. fi; done
  2642.  
  2643. EOF
  2644.  
  2645. cat >> $CONFIG_STATUS <<EOF
  2646. ac_sources="$_ISRCS"
  2647. ac_dests="$_IDSTS"
  2648. EOF
  2649.  
  2650. cat >> $CONFIG_STATUS <<\EOF
  2651. srcdir=$ac_given_srcdir
  2652. while test -n "$ac_sources"; do
  2653.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  2654.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  2655.  
  2656.   echo "linking $srcdir/$ac_source to $ac_dest"
  2657.  
  2658.   if test ! -r $srcdir/$ac_source; then
  2659.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  2660.   fi
  2661.   rm -f $ac_dest
  2662.  
  2663.   # Make relative symlinks.
  2664.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2665.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  2666.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  2667.     # The dest file is in a subdirectory.
  2668.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  2669.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  2670.     # A "../" for each directory in $ac_dest_dir_suffix.
  2671.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  2672.   else
  2673.     ac_dest_dir_suffix= ac_dots=
  2674.   fi
  2675.  
  2676.   case "$srcdir" in
  2677.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  2678.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  2679.   esac
  2680.  
  2681.   # Make a symlink if possible; otherwise try a hard link.
  2682.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  2683.     ln $srcdir/$ac_source $ac_dest; then :
  2684.   else
  2685.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  2686.   fi
  2687. done
  2688.  
  2689.  
  2690. exit 0
  2691. EOF
  2692. chmod +x $CONFIG_STATUS
  2693. rm -fr confdefs* $ac_clean_files
  2694. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2695.  
  2696.